<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>flex布局2</title>
    <style>
       .box{
            /* 给父级添加flex */
            display: flex;
            /* 主轴对齐方式 */
            /* 起点排列 */
            /* justify-content: flex-start; */
            /* 终点排列 */
            /* justify-content: flex-end; */
            /* 中间对齐 */
            /* justify-content: center; */
            /* 空白间距均匀分布 */
            /* justify-content: space-between; */
            /* 空白间距均匀分布，两边无间距，小盒子两边都有间距 */
            /* justify-content: space-around; */
            /* 空白间距均匀分布，两边有间距 */
            justify-content: space-evenly;

            /* 测轴对齐方式 */
            /* 顶部对齐 */
            /* align-items: flex-start; */
            /* 底部对齐 */
            /* align-items: flex-end;
            /* 居中对齐 */
            /* align-items: center; */
            /* 拉伸对齐，默认和父亲一样高 */
            /* align-items: stretch; */
            width: 800px;
            height: 500px;
            background-color: pink;
        }
        .box div{
            width: 249px;
            height: 200px;
            background-color: skyblue;
       }
    </style>
</head>
<body>
    <div class="box">
        <div></div>
        <div></div>
        <div></div>
    </div>
</body>
</html>